package org.zhadoop.stream.cql.semanticanalyzer.parser.visitor;

import org.zhadoop.stream.cql.semanticanalyzer.parser.CQLParser.CreateInputStreamStatementContext;
import org.zhadoop.stream.cql.semanticanalyzer.parser.CQLParser.CreateOutputStreamStatementContext;
import org.zhadoop.stream.cql.semanticanalyzer.parser.CQLParser.SubmitApplicationContext;
import org.zhadoop.stream.cql.semanticanalyzer.parser.context.ParseContext;

/**
 * ddl 语法遍历
 * @author zwd
 *
 */
public class DDLStatementVisitor extends AbsCQLParserBaseVisitor<ParseContext>{

	public DDLStatementVisitor() {}
	
	@Override
	protected ParseContext defaultResult() {
		return null;
	}
	
	@Override
	public ParseContext visitCreateInputStreamStatement(CreateInputStreamStatementContext ctx) {
		CreateInputStreamVisitor visitor = new CreateInputStreamVisitor();
		return visitor.visit(ctx);
	}
	
	@Override
	public ParseContext visitCreateOutputStreamStatement(CreateOutputStreamStatementContext ctx) {
		CreateOutputStreamVisitor visitor = new CreateOutputStreamVisitor();
        return visitor.visit(ctx);
	}

	@Override
	public ParseContext visitSubmitApplication(SubmitApplicationContext ctx) {
		SubmitApplicationVisitor visitor = new SubmitApplicationVisitor();
        return visitor.visit(ctx);
	}
}
